 #include<stdio.h>
 
 double power(double x, int n) {
    if(n == 0) return 1.0;
    if(n < 0) return 1.0 / (x * power (1.0 / x, n + 1));
    return x * power(x, n - 1);
 }
 
 void main() {
     double x;
     int n;
	 printf("vvedite snachalo chislo potom cherez enter v kakuy stepen'\n");
     while (scanf ("%lf %ld", &x, &n) == 2) {
        printf("%16.16lf\n", power (x, n)); break;
     }
	 system("pause");
 }